<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			#hd{
				width:300px;
				height:500px;
				background:green;
				margin:0 auto;
			}
		</style>
		<script>
			function hi(){
				alert('你好！');
			}
		</script>
	</head>
	<body>
		<div id="hd" onclick='hi()'>
			
		</div>
	</body>
</html>
